package testappclient;

import java.io.IOException;

public class Main {

    private static ClientGUI gui;
    private static Client client;

    public static void main(String[] args) throws IOException, InterruptedException {
        gui = new ClientGUI(args[0]);
        gui.Show();
        client = new Client();
        client.Start();
    }

    static void Processing(String line) {
        try {
            double num = Double.parseDouble(line);
            gui.AddNumber(num);
        } catch (NumberFormatException e) {
            client.Stop();
            gui.AddCloseButton();
        }
    }

}
